<% 
x = <<-EOT
<export>
  <mineral>20_000</mineral>
  <electronic>300_000</electronic>
  <fishery>50_000</fishery>
</export>
EOT
%>

<%= debug Hash.from_xml(x) %>
